package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.ITravelDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.Travel;
import com.ricchieri.service.interf.ITravelService;

@Transactional(readOnly = true)
public class TravelService implements ITravelService, Serializable {
	private static final long serialVersionUID = 9186267618440555466L;
	ITravelDao travelDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<Travel> getAllTravel() {
		BasicFilter filter = new BasicFilter();
		return travelDao.getAllTravel(filter);
	}

	public ITravelDao getTravelDao() {
		return travelDao;
	}

	public void setTravelDao(ITravelDao travelDao) {
		this.travelDao = travelDao;
	}
}
